fastCSharp.LoadViewType(diantou.judgeState=function(Value)
	{
	fastCSharp.Copy(this,Value);
	this.isShowComment=0;
	this.comments=[];
	if(this.CommentCount==0)	this.isComments=1;
	});
diantou.judgeState.prototype={
MemoryUseKB:function()	{	return this.MemoryUse>>10; },
ShowLanguage:function()	{	return diantou.judge.GetLanguage(this.Language).ShowName;	},
ProblemPath:function()	{	return new diantou.problem({Id:this.ProblemId}).Path.CodeJudge+'&judgeId='+this.Id;	},
ContestProblemPath:function()	{	return new diantou.problem({Id:this.ProblemId}).Path.Contest+'&judgeId='+this.Id;	},
AcceptedRankDays:function()	{	return Math.floor((this.SubmitTime.getTime()-diantou.problem.Get(this.ProblemId,1).FristTime.getTime())/(1000*60*60*24));	},
AcceptedRankHours:function()	{	return Math.floor((this.SubmitTime.getTime()-diantou.problem.Get(this.ProblemId,1).FristTime.getTime())%(1000*60*60*24)/(1000*60*60));	},
AcceptedRankMinutes:function()	{	return Math.floor((this.SubmitTime.getTime()-diantou.problem.Get(this.ProblemId,1).FristTime.getTime())%(1000*60*60)/(1000*60));	},
AcceptedRankSeconds:function()	{	return Math.floor((this.SubmitTime.getTime()-diantou.problem.Get(this.ProblemId,1).FristTime.getTime())%(1000*60)/1000);	},
StateString:function()	{	return diantou.judgeState.GetStateString(this.JudgeValue);	},
JudgeDetailPoint:function()
	{
	if(this.IsFinished&&this.TestCount&&this.ErrorCount<31)
		{
		var Point=fastCSharp.PageView.SkinValue.SkinValue.problem.BasePoint>>this.ErrorCount;
		if(Point>=5)	return Point;
		}
	return 0;
	},
ContestPoint:function()
	{
	if(this.TestCount&&this.ErrorCount<31)
		{
		var Point=diantou.problem.Get({Id:this.Remote.ContestProblem.Id},1).BasePoint>>this.ErrorCount;
		if(Point>=5)	return Point;
		}
	return 0;
	}
		};

diantou.judgeState.GetStateString=function(JudgeValue)
	{
	switch(JudgeValue)
		{
		case 'WrongAnswer':	return 'Wrong answer';
		case 'TimeLimitExceed':	return 'Time limit exceeded';
		case 'MemoryLimitExceed':	return 'Memory limit exceeded';
		case 'RunTimeError':	return 'Runtime error';
		case 'CompileError':	return 'Compilation error';
		case 'JudgeError':	return 'Judge error';
		}
	return JudgeValue;
	};